import Vue from 'vue'
import App from './App.vue'
import '@/styles/element-variables.scss'

import * as echarts from 'echarts';  //npm install echarts -S
import * as ecStat from 'echarts-stat';  //npm install echarts-stat -S
Vue.prototype.$echarts = echarts
Vue.prototype.ecStat = ecStat

import router from './router'  //npm install vue-router@3

import ElementUI from 'element-ui';  //npm i element-ui -S
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

// import Antd from 'ant-design-vue';  //npm install -S ant-design-vue@1
// import 'ant-design-vue/dist/antd.css';
// Vue.use(Antd);

import Vant from 'vant'   //npm i vant@latest-v2 -S
import 'vant/lib/index.css'
import { Cell, CellGroup } from 'vant';
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Vant)

import axios from "axios";   //npm install axios -S
Vue.prototype.$axios = axios

import qs from 'qs'  //npm install qs
Vue.prototype.$qs = qs  //将qs插件放在Vue的全局对象上，这样就不用每次在不同组件使用的时候都引入了（this.$qs）

import Vuex from 'vuex'  //npm install vuex@3 -S
Vue.use(Vuex)
import store from '@/vuex/index'

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
